package com.nulstudio.sppm.Entities;

public class InvoiceEntry {
    private int number;
    private String name;
    private int quantity;
    private float costprice;
    private float wholesalePrice;
    private float retailPrice;
    private int invoiceId;

    public int getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(int invoiceId) {
        this.invoiceId = invoiceId;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public float getCostprice() {
        return costprice;
    }

    public void setCostprice(float costprice) {
        this.costprice = costprice;
    }

    public float getWholesalePrice() {
        return wholesalePrice;
    }

    public void setWholesalePrice(float wholesalePrice) {
        this.wholesalePrice = wholesalePrice;
    }

    public float getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(float retaailPrice) {
        this.retailPrice = retaailPrice;
    }
    public InvoiceEntry(){

    }
    public InvoiceEntry(int number, String name, int quantity, float costprice, float wholesalePrice, float retailPrice,int invoiceId) {
        this.number = number;
        this.name = name;
        this.quantity = quantity;
        this.costprice = costprice;
        this.wholesalePrice = wholesalePrice;
        this.retailPrice = retailPrice;
        this.invoiceId = invoiceId;
    }

    @Override
    public String toString() {
        return "InvoiceEntry{" +
                "number=" + number +
                ", name='" + name + '\'' +
                ", quantity=" + quantity +
                ", costprice=" + costprice +
                ", wholesalePrice=" + wholesalePrice +
                ", retaailPrice=" + retailPrice +
                '}';
    }

}
